import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: () => import('@/views/HomeView.vue')
    }, // 这里已正确添加逗号
    {
      path:'/comein',
      component: () => import('@/views/ComeInView.vue'),
    },
    {
      path:'/researchDevelopmentStrength',
      component: () => import('@/views/ResearchDevelopmentStrengthView.vue'),
    },
    {
      path:'/serviceCentre',
      component: () => import('@/views/ServiceCentreView.vue'),
    },
    {
      path:'/humanResources',
      component: () => import('@/views/HumanResourcesView.vue'),
    },
    {
      path:'/investorRelations',
      component: () => import('@/views/InvestorRelationsView.vue'),
    },
    {
      path:'/contactUs',
      component: () => import('@/views/ContactUsView.vue'),
    },
    {
      path: '/products',
      component: () => import('@/views/ProductsView.vue')
    }, // ← 在此处添加逗号
    {
      path: '/news',
      component: () => import('@/views/NewsView.vue'),
      meta: {
        title: '新闻动态'
      }
    },
    {
      path: '/solutions',
      component: () => import('@/views/SolutionsView.vue'),
      meta: {
        title: '解决方案'
      }
    }
  ]
})

export default router
